/***
 * @description axios封装
 * @file api.ts
 * @author andy
 * @date 2024/3/22 16:40
 */
// file:api.s
// 1、导入axios以及拦截器
import service from "./request";

// demo接口1
export const demo1 = (data: any) => {
  return service({
    url: "/user/user/demo1/" + data,
    method: "post",
  });
};

// demo接口2
export const demo2 = (data: any) => {
  return service({
    url: "/user/user/demo2",
    method: "post",
    data,
  });
};

// 登录
export const Login = (data: any) => {
  return service({
    url: "/art/art/login",
    method: "post",
    data,
  });
};

// 获取美术馆列表
export const GetArt = () => {
  return service({
    url: "/art/art/getart",
    method: "get",
  });
};

// 获取美术馆预约记录
export const JiLu = () => {
  return service({
    url: "/art/art/jilu",
    method: "get",
  });
};

// 查询剩余票数信息
export const checknums = (data: any) => {
  return service({
    url: "/art/art/checknum",
    method: "post",
    data,
  });
};
// 预约
export const yvyues = (data: any) => {
  return service({
    url: "/art/art/yvyue",
    method: "post",
    data,
  });
};

// 批量删除
export const DeleteListsss = (data: any) => {
  return service({
    url: "/art/art/deletelist",
    method: "post",
    data,
  });
};
